fixed the removing of first dbi connection at top