Fixed bugs in verifying legends

Really incorrect or inconsistent checks