Fix error states