Bugfix with selectedColor pointer