bug fixes for category prefetch