fix some issue for iPhone app