fix for modal