Fixing AJAX methods not triggering defect