fix bug no bounds of map