correct handling of multiple datasets for bars