Default Difficulty to charge the battery

Hello friends how are you, I have a little problem loading the battery. I just installed a stable rom cyanogenmod doing all corresponding wipes; but it happens that when the terminal is off and you plug the charger, the icon of the battery not charging is "hanging" and after that the terminal is completely frozen, only restores taking away the battery and putting it back. The strange thing is that when this load on normally. Can anyone tell me what is happening?