Fixes #635

The order for HasPrefix was backwards...so I'm not sure how this worked to begin with unless the Go API has changed. Fixes #635