Fixed a case where /accounts/sync would be wrongfully selected