fix string type bug