Fixes the glitch with the dialog showing back when its not suppose to