fix the pop menu bug.