Corrected a few lines that generate notices.