Fixed the vpc check