attempt to fix for rails 4