klocwork: fixed reported issues