fix error handlings when initialization.