fix issue where changes could not be saved