bug fix from conversion