Version 0.17.8

-fixed bugs found by first scan with Coverity Scan