Fix edgeY bug