fixed RGB and brightness bugs