on some pyside/qt versions the refresh value comes back as unicode and needs to be converted to an int