Fixed #34

May be still buggy, but now ECB works with workgroups for me