fix locations validation plugin.