fix empty package typeerror