fixed bug in _.memoize