Fixes to Ajax operations.