fix for new rails version