fix bundle register code