create popup bug fix