Fix loadBed bug caused by namespace conflict