Solving problems with relative_equals operator