fix #315 only local provider should be validated