Fixed js bug - custom field returns list