Fixed off-by-one error in spatial.cl