fixed throw issue in init