Fixed bug in Charlock script.