fix a init bug
leaf implement