Fix bug: accept routes with source lengths bigger than 0.