fix some minor warning