Fix zrange start calculation