fixed weird db error