fixed bug in check digit computation