fixed spec bug