fix bug when map files empty