Fixed bug transform tool when pressing twice on save button