Fix small bugs
Merge pull request #2 from bmneely/fixes-for-posts-upload

Fix small bugs