Fix a bug with the requirement picker that caused an index out of bound exception