fix occasional blank environment tab (recompute layout on selection)