Fixed missing init bug