Fixed bug when calling method for getting the options for a select when a field is an object.