Fixed bugs with ajax post options.