fixed error reraising