fixed ec for strings only