The when statement is supposed to be on the block, not on the individual task. It affects all tasks within the block (they're all to be executed when ma1sd is enabled and self-building is requested0.