Fixing e_notice errors