Fix CALC_SIZE when removing packages