fix regression caused by af2c22f (not noticable when caching is enabled)