fixing arch.vhd bugs