Fixed audio track removal code

Track removal code placed where it should be