attribute wasn't set on foundname. Move "else" body to mainline, "if" body end in unconditional goto.