Removing useless global variable

Thanks Visman