Add a path checking before setting ITS related variables