Fixes crash on iPad