Fixed re-render when closing spy panel