bugfix with sync fails