fix reading parameters in post