fixed activerecord