Fixes for respond to AJAX