Fixed similar issue in validatePrimal() + improved primal speed performance