Fix a new color block is given when refresh is pressed instead of just a random color.