Fixes bad use of attribute "type" in procedure variables