I do not think that 0 is a valid attachment id.