Fix bug: null pointer exception when no attribute colors are used