Fix realmInit data-related bug