fixing spec bug