Fixed undefined string problem