fix a bug in form parameters retrieval