fixed a bug in packaging process