fixed crash when incorrect motors are configured in 2d model