Modify uncertaintyValid to use the same filling procedure as testing.