fix a bug, and add package init