Fixed crash that would occur sometimes when moving motors