fix modal not hiding when backdrop hides