fixed issue with predb