Fixed bug when not using AVAudioPlayer