Fixed missing variable causing compile to fail