fixed error states