Fix memoization bug. Fixes code reloading in rails apps.