bug fix for modal click
bug fix for modal click