fix some erbi bug