Error fix on DB Error