Fix bug with Stub.