Bugfix
Auto-sync function.