fixed small issue with @if statement for (for x y)