Cond test ok, but procedure variable reference cause failure