Variable issue fixed