fix bugs REL and redo