fix few compiler complains