ActiveRecord::setAttribute() bugfix