Corrected the data.access in toState always false bug