fix memory leak fw.Map, fw.Model