Fix bug in update_bundle