Fixes ActiveRecord lazy attribute initialization