undone commit executing 2nd time