fix for sync error