Fix uninitialized nresults and RGB