fix bug get myrank