Fix instance idempotence

code was making an invalid comparison which led to always getting new instances created.

Also a debugging line snuck in at some point that should go away.