fix: fixed bug in color constructor