Fix volatile pointer