crash fix for overpacking