fixed getThrowEndX