Fix SPD to RGB conversion