fix the order of set large_static_mem attribute