initialization bug fixed