fix display errors on ajax debug call