explode step tries to open last MS twice?

Created by: tikk3r

Some time ago in september @tammojan put in an "explode" step so that we could e.g. phaseshift the same measurement set to multiple directions at the same time. I think it worked when I tried it back then (it's been a while), but trying it again now it crashes for me with

 copying info and subtables ...
Finished preparing output MS
 copying info and subtables ...
Finished preparing output MS

std exception detected: Table lbcs_L335672 already exists

or

std exception detected: Invalid Table operation: SetupNewTable lbcs_L394672 is already opened (is in the table cache)

with msout.overwrite=True. It's always the last measurement set in the list of msout.names that's shown in the error message. Is it maybe trying to open it twice? Below is an example of the parset I use:

msin.ntimes = 100 

msout.writefullresflag = False
msout.name = ['lbcs_L394815', 'lbcs_L335672']
msout.storagemanager = dysco

steps = [explode]
explode.steps = [shift, msout]
explode.replaceparms = [shift.phasecenter, msout.name]

shift.type = phaseshift
shift.phasecenter = [[113.182166666667, 43.5945830555556], [113.076458333333, 45.0463888888889]]