Fix the active record syncing