fix code analysis errors
Merge pull request #19 from 0xor1/dev

fix code analysis errors