fix start-index (0 is invalid)