Added missing init call.
Merge pull request #1810 from matej/initFix

Added missing init call