fix the fix, rails 4 incompatibility