Fixed activerecord