Remove undefined index warning