Correcting tiny bug due to non initializing a matrix.