Fix playback state logic