fix some post-POST bug in index