fixed the json being sent