Fixes a memoization error