fix bug with state not being bound