bugfix: j-i<=4