Fixed gauss psi calculation