Yes that is right: do not size your raises relative to the bet of your opp, size them relative to the size of the total pot (which obviously includes latest opp's bet)!