fixed some bugs while submit to the app store.