fix compatibility with some old plugin versions