fix setting empty color failed