fix a few warning