fixed error with pybb referencing bad variable