Is 400x290 the size of the map you intend to create?
If that is the case, then you need to open overland.h and change the MAX_X and MAX_Y variables to reflect your new dimensions. Or fill in the leftover space with ocean sectors.
If that is not the case then I'm not sure what to tell you.
It looks to me like it completely misinterpreted your map because the dimensions are not 1000x1000 which is the default size.