fix post redirect bug