Fix distinction between all attacment types (docs become with id set to 2)