Fix Linux Build and delete useless variable