fix component & module exception behavior