Fixed obscure bug Model._d