Prevent the matrix from reaching invalid values (#417, #607, #577, #582)
Prevent the matrix from reaching invalid values (#417, #607, #577, #582)

This may also solve #576

gunterhager/ios-charts,LiveHappier/Charts,gjpc/ios-charts,danielgindi/Charts,franqueli/ios-charts,icecrystal23/ios-charts,jum/Charts,SereivoanYong/Charts,franqueli/ios-charts,ekohe/ios-charts,danielgindi/Charts,icecrystal23/ios-charts,KerryJava/ios-charts,danielgindi/ios-charts,jjatie/Charts,ConcepterDev/ios-charts,SBGMobile/Charts,GreenCom-Networks/ios-charts,liuxuan30/Charts,jum/Charts,icecrystal23/ios-charts,noais/ios-charts,summerlove57/ios-charts,hanquochan/Charts,dtrauger/Charts,StephenVinouze/ios-charts,FreddyZeng/Charts,leoMehlig/ios-charts,gjpc/ios-charts,hanquochan/Charts,StephenVinouze/ios-charts,SBGMobile/Charts,koroff/Charts,jesseXu/Charts,Eflet/Charts,danielgindi/ios-charts,SBGMobile/Charts,gjpc/ios-charts,StephenVinouze/ios-charts,koroff/Charts,SereivoanYong/Charts,ekohe/ios-charts,mobistix/ios-charts,FreddyZeng/Charts,duanhjlt/ios-charts,noais/ios-charts,danielgindi/Charts,hanquochan/Charts,MAARK/Charts,aelam/Charts,KerryJava/ios-charts,jesseXu/Charts,aelam/Charts,liuxuan30/ios-charts,zntfdr/ios-charts,boluomeng/Charts,Eflet/Charts,jjatie/Charts,Shannon-s-Dreamland/Charts,koroff/Charts,LiveHappier/Charts,summerlove57/ios-charts,dtrauger/Charts,leoMehlig/Charts,leoMehlig/Charts,gunterhager/ios-charts,gunterhager/ios-charts,leoMehlig/Charts,jesseXu/Charts,dtrauger/Charts,gunterhager/ios-charts,FreddyZeng/Charts,boluomeng/Charts,Eflet/Charts,shujucn/ios-charts,icecrystal23/ios-charts,jum/Charts,StephenVinouze/ios-charts,liuxuan30/ios-charts,liuxuan30/ios-charts,danielallsopp/Charts,shujucn/ios-charts,KerryJava/ios-charts,liuxuan30/Charts,danielgindi/Charts,leoMehlig/Charts,danielallsopp/Charts,GreenCom-Networks/ios-charts,liuxuan30/ios-charts,ConcepterDev/ios-charts,aelam/Charts,shujucn/ios-charts,noais/ios-charts,boluomeng/Charts,mobistix/ios-charts,boluomeng/Charts,dtrauger/Charts,convergeeducacao/Charts,summerlove57/ios-charts,leoMehlig/ios-charts,duanhjlt/ios-charts,SereivoanYong/Charts,convergeeducacao/Charts,duanhjlt/ios-charts,mobistix/ios-charts,Eflet/Charts,hanquochan/Charts,jum/Charts,ConcepterDev/ios-charts,MAARK/Charts,franqueli/ios-charts,danielgindi/ios-charts,koroff/Charts,jjatie/Charts,zntfdr/ios-charts,MAARK/Charts,GreenCom-Networks/ios-charts,GreenCom-Networks/ios-charts,leoMehlig/ios-charts,liuxuan30/Charts,MAARK/Charts,ekohe/ios-charts,LiveHappier/Charts,jjatie/Charts,leoMehlig/ios-charts,zntfdr/ios-charts,FreddyZeng/Charts,Shannon-s-Dreamland/Charts,danielgindi/ios-charts,liuxuan30/Charts