Fixed invalid charge bug.