Make passes terminated with hash marks hash properly