Throw undefined index exception, fix #45