fixed broken plot