Fix pause button crash

Fixes compilation errors for iPhone simulator and fixes the pause
button crash