TypeError: Cannot read property 'color' of null