Fixed bug in final pruning
Bug fix: loop criterion in fitting
Bug fix: spatial filter for pruning