fixed bug of str-funct