fix apply local changeds bug caused when loading custom styles