fix nil value when trying to move players