fixed spec errors