fixed the issue with barplots and inference