Fixed some bugs in popup windows