Fix a typo
Fix undefined index