Fixed crash on iOS prior 7.