fix 4.0.0 wornings
rails 4