fix for rails4.1