trying to fix for rails4