fix bug when ets not inited