Fix dismiss on background touch