Bug fixes

Fixed update tags not running after sync, if the setting was enabled.
Fixed usage of sync after library update, was always syncing.
Small cleanup of sync, replace redundant calls with a variable and one time call.