Optimizer: change the place where update_uplo is called (fix issue #49)