Fix modal dialog backdrop not being removed