Fix bug that encoded bundle data is null