temp fix

the variable wasn't set anywhere, thus prevented the perfectly fine if to not work.