Fixed some notices.