Fixed invis I stupidly had cast it to a local variable

Stupid on my part heres the fix