fix to compare values from chars.