fixes bug in request json parsing