fixed delete post issue on Linux