Fix bug with storing packages without attributes.