Fixed ot 1.1 deprecations warnings.