Stricter check of map boundary. Caused index out of range before.

No match.