bug fix in ActiveModel