Fixed minor warnings