minor fix in convert and cmake
fixed bug