fix bug with state reconstruction