bugfixes for importance calculations