fix tab coloring code