initialization bug fix