resolved an initialization bug