fix uncatched exception