Motor speed bugfix