fixed a multiplot bug