Corrected a bug in YUV to RGB conversion