Fix crash in convert plugin