Fix autoloading bug in AR.