Fix to cd char comparison