fixed Notice Error: Undefined index