Fix global Variables

Some variables was wrong declared