Fixed bug with syncing.