fixed bug when color is not given