corrected error logic in ajax call in ExecuteAjax