index fix, some undefined variables on homework page causes php errors