Using texture inside FBO

I struggle with how to use texture inside FBO.
What I want to do is simple, just mapping texture to sphere.

My first code that doesn’t use ofFBO works perfect.

texture.getTextureReference().bind();
projectionSphere.draw();

However when I put code inside fbo.begin(), it doesn’t work anymore.

fbo.begin();
  texture.getTextureReference().bind();
  projectionSphere.draw();
fbo.end();
fbo.draw();

It seems that left top 1px of texture wraps entire part of the sphere.
I cant find what is problem and how to fix it.

any idea?

Make sure to call texture.getTextureReference.unbind() after projctionSphere.draw()