bug fix for modal block