fixing state snafu