Fixed crash because I didn't specify to use a session variable.