res.locals auto-population fix