Fix wrongly placed var