a fix for AQL and cache