fix state name + logged log