Fixed a bug with editing posts.