Undefined index fix.