Bug in drawOrderedByX fixed