For some reason the linestyle changes in the figures, although it is only once defined, if I'm not mistaken.