NXIO-158: fix wrong state checking