Fixed undefined index notice

As said in the title :)