try auto fix improper config on shark client launch.
merge from upstream/master.
fix type missmatch.
Merge pull request #246 from ChengXiangLi/fixConfigError

try auto fix improper config on shark client launch.