fix spec deprecations