fix a bug in real2rgb.m