Fixed an error code if sync-handler doesn't exist