fixed assertion in Spot

* d may be zero