fix extremes drawing