Fixed attachments check.
0.5.3