fixed issue with predb
Merge pull request #1059 from Bart39/dev

fixed issue with predb