Fixed some notices