fix string "(null)" bug