fix delete post issue