fix to nonhtml response rendering