Fixed popup box reset