Bugfixes in wed.