popup bug fixed