fixed minor warnings