update mode on rename