fixed some issues with the tms bar plot