resolved crashing in ios5