[variational] bugfix wrong error message