fix characters causing error