Fix graph validation in validateLoom