I have set the badge number of my app to 1 with a local notification. Then I uninstall the app. When I reinstall it the badge is still there. Is this an iOS bug or is there a way to clear the badges when it gets uninstalled?

thanks.