fix in value comparision when setting