fixing ajax requests.