Fix regexp that parse location hash