fix error in dynamic file sync