fix for "undefined method `less'"