restored modal capability

it was broken before