modified to check state change in PT Fixes #46168237