get current state fixed (null -> 'null')