fix reverse bug