defaulting unavailable attribute ids to zero