fix params initialization bug