fix getstr panic