Fixed a critical infinite loop bug by removing "syncWithDom" feature