bug fix middle popup