Corrected extended functionality of matrix needed for grid bag layout