Try to fix rails 4 compability