bugfix to support multi-part problems