Fix wrong extractRealId call