Jf rim brakes aren't working right, it's because the levers aren't compatible. Mine are, but I tried some straight h'bar levers and they were hopeless.
Interesting to note many kids bikes have brakes which hardly work, especially for little hands. Seen it too often, shocking.