fix for issue #100 - Switch d.size to return something

Band-aid fix for #100