Updating game

When I update a game (not made with gamesalad I only update it in Appstore) sometimes it resets my levels and sometimes it keeps where I was. Can someone tell me how to make my update without reseting the user's progress.