minor fixes for warning