bug fix for str constr