fixed download plot script