Fix a problem with packed arrays