bugfix in sync