[FIX] export_all_layers crash bug