fixed bugs with non allowed char