Quick-fix for an undefined index - Thanks Aaron for suggesting the fix

Signed-off-by: emanuele <emanuele45@gmail.com>