fixed a missing variable