fix missing fields in ajax call