W Is Not A Valid Spmat Object