attempt to fix for rails4