fix for support of < 1.9.x