fix package size is zero bug