a couple of moped fixes for rails4