fix warnings in code.