Fixed an issue where sometimes the bitmap wouldn't be counted as cached.