Tiny fix for object.dart

Note that data is not yet defined.
Sub in buf which I believe is the intention.