fix file sync issue