prevent exception when packaging results