bug fix structure database