fix undefined method `enforce_available_locales`