fixed serious bug in spp_features