fixed an uninitialised memory issue
fixed an uninitialised memory error
Merge pull request #1279 from karlnapf/develop

more bugfixes