fixed error in edit post