Fix autosync script