Fixed an initialization bug.