fixed bug in updating st number