Fixed undefined index notice in API listing