fixed missing call to reset operation in merge command