Fix #494. Start indexing from 1 instead of 0
Merge pull request #495 from zakkak/master

Fix #494. Start indexing attachments from 1 instead of 0