popup bug fix