Fixed JSON submiting problem