[#318] Fixing app.locals.