getInstance was returning an instance when if was not supposed to.