fixed ajax redirect problem issue