Corrected bug in barplot function.