Fix deprecated specs breaking