char if correction