fix some minor warnings in code