Fixed some AJAX things