made some fixes such that 3x3 plots work