fixed nullstring bug