Fixed an issue with Ajax loading.