Corrected issues with the chached flags