fixed minor bug in one of the scripts