fixed bugs with handling post body params