fixed bug when using accents from db