Its not good. Its not a good design. It may or may not be the part of the reason for the problem. After solving the problem, then fix the design. That might mean not using the ammeter, but even so, it must be done right or the problems remain.