bug in residue number finder fixed