Fix exception that occurs if user manages to have no module selected