fix reverse direction