Fix a bug regarding edge color.