fixed the zero matrix, first try couldn't find any problems