Fixed issue with vpc checking