Fix some problems with responseText