Fixed matrix bug (broke when drag a cell to 0) and built