added additional condition to be on the safe side when data is broken
fixed taxonomic position calculation