Fixed issue with updatePost