fix compatibility with database 4.1.30