Don't write to res twice, doh