Fixed bug where hex could change when opacity slider moved because of rounding error