fix some notices