Undefined index fixed.