Prevent iOS crash