Fix issue when using 0 indexed sources