fix bug in package script