fix when activerecord doesn't load