Fix workgroup member counter issue (closes #1488)