Fix player loop