fixed issue in convert