Only set class d-modal once