Bug fix
Fixes the 'sync' command.