fixed bug with 'charge' feature