fixed editing post bug