fix activerecord 3.2.x version, bug on jruby with 3.2.14