Fix for PrefetchFrame, with test.