Fix rails regressions.