fix activerecord