More bugfixes in new utils code