fix 'volatile' qualifiers error