Fix for realm.