fixing incomplete modal class removal