Fixed Motor Reset Issue

Fixed an issue where a motor was resetting back to or near its original
value after completing.