fixed missing variable