Generated undefined index notice

When generating site it used to generate PHP notice