better handle missing attachment values