fix for rgb learning