bugfixes and Probability keep_parents option