fix for color breaks bug