Make plugin compatible with 1.5