Prevent crash on iOS6