Grammar correction up to access a variable