minor fix for AJAX redirect