walk around matrix singuler exception