Fix bug causing invalid verilog for bit indexing