some bug fixes for hue