fixed throw Error