fixed coloring and scaling bug