bugfix with bound (appeared for sensor on border of space)