fix compilation error when ddbmodel is a dependency