fixes #845
Merge pull request #852 from aagam-shah/fix845

Update the currentPost to the updatePost, fixes #845