fix revert button in editor