fixed bug where findOptions added undefined options when it ran out of valid ones