fixes bug with Activesupport 3.2