fix post redirect issue