Well in fact Ohm's law (he is a person so capital letter, it is his law so an aposphory ) to material with linear resistance.
Which is like saying it only works when it works.
In the contex that the OP asked the problem he had was he was not taking into account all the resistances in the circuit. If he had of he would have found it worked exactly.