fixed bug where pressing r cleared color boxes