fix the problems at ios5.1