Fix bug with uninitialized hash