Moves hash initialization to correct position

As discussed in #571

//CC @xzyfer