fix build fail, add throw