fix bug with special characters