rails4 fix