fix a bug in companion embedding object