fixed some minor warnings