I am trying to get a MCP73833 working however it seems to be acting strange. I have two versions wired up identically however the PCB layouts are different. One works fine and the other one making a really high pitched sound and the charge current is not what it should be. See layouts below. The first one works, the second one does not. I have also attached the schematic of the circuit.