Fix synhronization bug