Fixes around issues with double rendering errors from rails.