fixing the bug of geting dict from post request