backend: Fix the nested mode