fix processing switch