fix active record missing documents bug

fix active record missing documents bug