fixed post edit problem