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

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #734 from emanuele45/quick_fix

Quick-fix for an undefined index - Thanks Aaron