fix rails4