Fixed payload for ajax requests.
Merge and fix.