applied compound assignment patch by SvenOlsen