Help me fix my logic circuit
If you look at the Truth Table for a S-R Latch, found here

wiki S-R Latch

you will see that the condition you are describing is "Not Allowed".

If you wish to have a circuit that toggles the outputs when both input are high you may want to consider a J-K Flip Flop; which is described further down on that same page.