fixed moving matrix in small box exception