fixed VHDL issues in (generated) code