fix bug in boxAdaptor code sample