what kind of file permission even nothing has changed on the script side ?? i have same stuff sometimes but look like more as a not so good programmed mathematic stuff as like t.clicks - clicks = g.clicks
so if clicks is higher than t.clicks you will get automatically a negative g.clicks count