Apex: Fix snapshot scenario detection