Fix a type-related bug with getRefreshRate()