Improve correctness of black-run logic in case where patterns are very close to edge