Fixing comparison between two gpvars.