Fixed bug in motor mix calculation