bug fix modal