Try a second time if a modal is not declared