Fixed null pointer exception on player