fixed filesync issue #1