Bugfix: Wrong comparison with string instead of array-index