fixed 1 over edge of map