Fixed doPost bugs.