Fix string passing bug