fixed bs plot script.