Fix error in IsAutoCache