Fix the problem of initialasion of ration matrix