fixed cstring bug