fix a nullpointer problem in updatePrecessRate