Fixed incorrect matrix size