fix compatibility with 4.2