Moves hash initialization to correct position