Fixed bug case where object is a matrix/data.frame