Fix some notices.