bugfix: #1

stayInRange not correct for multiple domain #1