Fix bug in motor speed boost code caused by time overflow.