Solve problem comparing variables.