fixed error in DB Manager