small bugfix in plot script