fix to work with Rails 4.0.0