Row and column insertion bug fixed