Crash Fix

Removed res.write which was causing app to crash