Fixed reference issue in player animation