fix the bug: cannot compare modified with last sync