fix for Rails4