nan error of the uncertainty fixed