[wt4] fix index issues in initproblem
Merge pull request #36 from Xarthisius/wt4_fix

[wt4] fix index issues in initproblem