fixed bug with wrong volatile modificators