Fixing value compare issue.