fixed bug when the value is a string