Fixed an initialization bug