issue with colors when using errorbar and legend

Hi

From other postings I see how to use a legend with errorbar. For example:
  http://sourceforge.net/mailarchive/message.php?msg_id=14124668

But I see that there is still a problem with the color of the legend
symbols. Specifically, if I plot using errorbar and then overplot a line,
the color of the line in the legend is set to the color of the errorbar
plot.

For example:

from pylab import *
data = [1,2,3]
error = [.5, .5, .5]
# The errorbar plot is blue.
line1 = errorbar(data, data, error, None, 'bo')
# The dashed line plot is red.
line2 = plot(data, data, 'r--')
legend((line1,line2),('line1','line2'))
show()

Notice that in the legend both the points and the dashed lines are blue,
when the dashed line should be red.

Is there a way around this? Am I using legend() incorrectly?

Thanks,
James