fix double-throw