fixing bad sync handler