bugfix: xDiff or yDiff undefined state is handled