Use correct property names when calling setRatio()