Fix bug that map leaves panel blank after expanding