Fixed issue with the sync button

Sync button would stay "synced" after it was clicked.