Fix negative gvars precision (#6321)