Fix some minor bugs with url hashes