Fixed some variable perm checks not occuring.