fix compatibility with 5.3