Fix: Cannot call method 'pause' of undefined