Fixed min, max Linq operator issue

when return a element, will cause crash