Fixed typo from todense() update