fix segfault: color should init to nil value