Variable issue solved