fix initialization bug