fix bug in package