Fix volatile instance check.