Fix detail_delete reverse bug