fixed throw error