Fix windowClass not being set on modals