Motor direction pin correction