fixed a bug of updating degrees