Fixed typo in cache condition