Fix bug when moving this from my app into revel proper.