Temporary fix for AJAX request staying open.