Fixed initialization bug.