fixed error with the popup caused by adding the sectors code