bug fix in getMaxContrast

Max contrast wasn’t getting set correctly, this has been fixed.