fix bug with start zero