Added reset processing when there is no modal