Fixing undefined index issue.

Signed-off-by: Zane M. Kolnik <zanematthew@gmail.com>