fix duplicated error catcher