fix undefined index key
[completed: 118]