fixed error on pressing Cancel from rename dialog