fixed bug that resulted in an infinite while loop if a list ended on a non-unique gid.
Merge branch 'master' of https://github.com/darcyabjones/quick-ortho-fetch