Fixed an error with the palyer controller