fixing bug where brem var was NaN which causes out of bound array accesses.
Merge pull request #5970 from Sam-Harper/EG73XEUncertaintyFix

fixing bug where brem var was NaN which causes out of bound array access