mini-fix for modal element