fix spec errors