fix initialization flow. close #253