fixed potential random color bug