Fix bug in hash parsing