Add cube color, but it failewith segment fault