Variable bug fixed

Thanks to Wulfspider & Contex