Fix problem with editing posts