Fixed singleField Error

fixed error when tha singleField option is false.