collection & errorDB bug fixed