minor fixes for some warnings