Fixed DAL thread initialization