Fixed caching bugs in ata.ml