fix problem with rails 4.0