fixed a database issue