fix apply changes