fixed bug caused by special characters