fix couple of warnings