Fixed the case of the disappearing modal

Inspector Jones has solved the case