fixed typeFlatRgb

copy and paste error