Fix bug that returned enitre ArrayList of attribute value pairs instead of just one pair.