fix for error states