Fix a bug in multi part plugin code

Fix #95