It's not a bug, but something is causing the enemies to have access to the edge of screen. What causes it to happen? Normally they couldn't reach the Last tile.
Enemies Walk On Edge?
That's caused by the 'No Invisible Border on Non-Dungeon DMaps' rule.