fixing broken state