Fix bug with panning first panel, rebuild