some bugfixes, fix preference summary