Fixed bug in purpose field returned in search field