fixed a few vhdl bugs