Bug Fixes

Had a variable potLength in a test file I copy and pasted from, needed
to switch for this.