fix popup console bug