how are you charging it? plugged in with the OEM cord or another cord? plugged into an outlet or PC USB?
I have never had an issue with charging when plugged in via OEM cord to an outlet.
Primary Device: Motorola Razr M (XT907)
ROM: AOSP KitKat 4.4
Recovery: TWRP 220.127.116.11
Previous Device: Samsung Droid Charge (SCH i510)
ROM: Tweaked Lite 1.0
Kernel: Stock FP8