ticket:2 fix warnings