fixed some bugs for TSDSpace (OutOfBoundsFilter, Division through 0)