fixed DB error