fix for sync command