activerecord fix